import request from '@/utils/request'

// 查询工程申报记录列表
export function listRecord(query) {
  return request({
    url: '/declaration/record/list',
    method: 'get',
    params: query
  })
}

// 查询工程申报记录详细
export function getRecord(prid) {
  return request({
    url: '/declaration/record/' + prid,
    method: 'get'
  })
}

// 新增工程申报记录
export function addRecord(data) {
  return request({
    url: '/declaration/record',
    method: 'post',
    data: data
  })
}

// 修改工程申报记录
export function updateRecord(data) {
  return request({
    url: '/declaration/record',
    method: 'put',
    data: data
  })
}

// 删除工程申报记录
export function delRecord(prid) {
  return request({
    url: '/declaration/record/' + prid,
    method: 'delete'
  })
}

// 导出工程申报记录
export function exportRecord(query) {
  return request({
    url: '/declaration/record/export',
    method: 'get',
    params: query
  })
}